package com.his.controller;

import com.his.bean.DzmHisInspectionfee;
import com.his.service.DzmHisInspectionfeeService;
import com.his.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;
@RequestMapping("In")
@RestController
public class DzmHisInspectionfeeController {

    @Autowired
    DzmHisInspectionfeeService dzmHisInspectionfeeService;

    @GetMapping("listInfo4")
    public ResponseResult   listInfo4(DzmHisInspectionfee dzmHisInspectionfee){
        return new ResponseResult(200,"查询成功",dzmHisInspectionfeeService.listInfo4(dzmHisInspectionfee));
    }

    @PostMapping("addInfo4")
    public  ResponseResult addInfo4(DzmHisInspectionfee dzmHisInspectionfee){
        return new ResponseResult(200,"添加成功",dzmHisInspectionfeeService.addInfo4(dzmHisInspectionfee));
    }

    @PostMapping("delInfo4/{insId}")
    ResponseResult delInfo4(@PathVariable String insId) {
        return new ResponseResult(200, "删除成功", dzmHisInspectionfeeService.delInfo4(insId));
    }

    @GetMapping("selectByIdInfo4/{insId}")
    ResponseResult selectByIdInfo4(@PathVariable  String insId) {
        System.out.println(insId+"============sinId");
        return new ResponseResult(200, "单查成功", dzmHisInspectionfeeService.selectByIdInfo4(insId));
    }

    @PostMapping("updateInfo4")
    ResponseResult updateInfo4(@RequestBody Map map) {
        System.err.println(map);
        return new ResponseResult(200, "修改成功", dzmHisInspectionfeeService.updateInfo4(map));
    }






}
